﻿using Microsoft.AspNet.Identity.EntityFramework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TicketMaster.Object;
using System.Data.Entity;

namespace TicketMaster.Data
{
    public class ApplicationDbContext : IdentityDbContext<ApplicationUser>
    {
        public ApplicationDbContext()
            : base("DefaultConnection", throwIfV1Schema: false)
        {
        }

        public static ApplicationDbContext Create()
        {
            return new ApplicationDbContext();
        }

        public IDbSet<BookedSeat> BookedSeats { get; set; }

        public IDbSet<Bus> Buses { get; set; }

        public IDbSet<City> Cities { get; set; }

        public IDbSet<Comment> Comments { get; set; }

        public IDbSet<Route> Routes { get; set; }

        public IDbSet<Seat> Seats { get; set; }


    }
}
